.c-button {
  box-sizing: border-box;
  display: inline-block;
  height: 32px;
  margin: 0;
  padding: 4px 15px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #333;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  white-space: nowrap;
  outline: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  cursor: pointer;

  &:hover,
  &:focus {
    color: #40a9ff;
    background: #fff;
    border-color: #40a9ff;
    text-decoration: none;
  }

  &:active {
    color: #096dd9;
    border-color: #096dd9;
    outline: none;
    background: #fff;
  }

  &.is-disabled {
    &,
    &:hover,
    &:focus {
      color: rgba(0, 0, 0, 0.25);
      background: #f5f5f5;
      border-color: #d9d9d9;
      text-shadow: none;
      box-shadow: none;
      cursor: not-allowed;
    }
    &.c-button--text {
      background: transparent;
      border-color: transparent;
    }
  }

  &.is-loading {
    position: relative;
    pointer-events: none;
    cursor: default;
    &::before {
      content: '';
      position: absolute;
      left: -1px;
      top: -1px;
      right: -1px;
      bottom: -1px;
      border-radius: inherit;
      background: #fff;
      opacity: 0.35;
      transition: opacity 0.2s;
      z-index: 1;
      pointer-events: none;
      cursor: default;
    }
  }
}

.c-button--primary {
  color: #fff;
  background: #1890ff;
  border-color: #1890ff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);

  &:hover,
  &:focus {
    color: #fff;
    background: #40a9ff;
    border-color: #40a9ff;
  }

  &:active {
    color: #fff;
    background: #096dd9;
    border-color: #096dd9;
  }
}

.c-button--text {
  color: #1890ff;
  background: transparent;
  border-color: transparent;

  &:hover,
  &:focus {
    color: #40a9ff;
    background: transparent;
    border-color: transparent;
  }

  &:active {
    color: #096dd9;
    background: transparent;
    border-color: transparent;
  }
}
